package com.example.hellospringboot.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyConfig {
    @Bean(name = "testXML1")//将标注方法的返回值存到spring容器中
    public TestXML testXML(){
        return new TestXML();
    }
}
